using NHibernate;
using NhibernateDemoCore;

namespace NhibernateDemoConsole
{
    internal class CreateCustomerWithoutTransaction
    {
        public void Execute(ISessionFactory factory)
        {
            using(var session = factory.OpenSession())
            {
                session.Save(new Customer {Name = "Jason"});
            }
        }
    }
}